@extends($theme.'.layouts.app')
@section('content')
    <div class="bg_cont">
        <div class="container">
            <form id="registerForm" class="loginForm" action="{{ asset('reg') }}" method="post">
                {!! csrf_field() !!}
                <div class="row text-center">
                    <h2>用户注册</h2>
                </div>
                <div class="form-group">
                    <label for="name">用户名</label>
                    <input type="text" id="name" class="form-control" name="name" tabindex="4" value="{{ old('name') }}"
                           placeholder="用户名长度为1-20个字符">

                    <p class="bg-danger">{{ $errors->first('name') }}</p>
                </div>
                <div class="form-group">
                    <label for="password">密码</label>
                    <input type="password" id="password" class="form-control" name="password" tabindex="5"
                           placeholder="密码长度为6-20个字符">

                    <p class="bg-danger">{{ $errors->first('password') }}</p>
                </div>
                <div class="form-group">
                    <label for="password">重复密码</label>
                    <input type="password" id="password" class="form-control" name="password_confirmation" tabindex="6"
                           placeholder="请重复密码">
                </div>
                <div class="form-group">
                    <input type="submit" class="btn btn-primary btn-block" value="注 &nbsp; &nbsp; 册">
                </div>
            </form>
        </div>
    </div>
    <style>
        #registerForm input { width: 100%;}
        .bg-danger { color: #f00;}
    </style>
@endsection
